﻿using Util;

namespace DTO
{
    public class GetMenuTreeOutput:TreeModel
    {
        /// <summary>
        /// 否已删除
        /// </summary>
        public bool Deleted { get; set; }
        
        /// <summary>
        /// 类型,菜单=0,页面=1,权限=2
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 权限名/菜单名
        /// </summary>
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// 菜单地址
        /// </summary>
        public string Url { get; set; } = string.Empty;
        /// <summary>
        /// 权限值
        /// </summary>
        public string Value { get; set; } = string.Empty;
        /// <summary>
        /// 是否需要权限(仅页面有效)
        /// </summary>
        public bool NeedAction { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; } = string.Empty;
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 页面权限值
        /// </summary>
        public List<string> Actions { get; set; }=new List<string>();
    }
}
